const mongoose = require("mongoose");
mongoose.pluralize(null); //去掉集合后面的s
const { Schema, model } = mongoose;
const versionKey = { versionKey: false };
const moment = require("moment");
moment.locale("zh-cn");
// 小程序端首页10个游记分类
const HomeTabSchema = new Schema(
  {
    icon: String, //icon图标
    text: String, //分类
  },
  versionKey
);
// 第三步
module.exports = {
  modelHomeTab: model("hometab", HomeTabSchema),
};
